﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Chinaer.Model.Entities
{
    /// <summary>
    /// 顾客收货地址表
    /// </summary>
    [Table("Address")]
    public class Model_Address:Model_Base
    {
        /// <summary>
        /// 顾客编号
        /// </summary>       
        public string CustomerID { get; set; }
        /// <summary>
        /// 地址编号
        /// </summary>
        [Column("ID")]
        [Key]
        [Required]        
        public string ID { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        [StringLength(100)]
        public string Address { get; set; }
        /// <summary>
        /// 所属国家
        /// </summary>
        [StringLength(50)]
        public string CountryID { get; set; }
        /// <summary>
        /// 所属省份
        /// </summary>
        [StringLength(50)]
        public string ProvinceID { get; set; }
        /// <summary>
        /// 所属城市
        /// </summary>
        [StringLength(50)]
        public string CityID { get; set; }
        /// <summary>
        /// 邮政编码
        /// </summary>
        [StringLength(20)]
        public string ZipCode { get; set; }
        /// <summary>
        /// 收货人姓名
        /// </summary>
        [StringLength(50)]
        public string Receiver { get; set; }
        /// <summary>
        /// 收货人固话
        /// </summary>
        [StringLength(20)]
        public string ReceiverPhone { get; set; }
        /// <summary>
        /// 收货人手机号码
        /// </summary>
        [StringLength(20)]
        public string ReceiverMobile { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        [StringLength(200)]
        public string Description { get; set; }
    }
}
